<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf循环</title>
</head>
<body>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">thymeleaf循环</h3>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="col-md-6">
            <table class="table table-bordered">
                <thead>
                <th>标题</th>
                <th>描述</th>
                <th>创建时间</th>
                <th>修改时间</th>
                </thead>
                <tbody>
                <tr th:each="category : ${categoryModel}">
                    <td th:text="${category.title}"></td>
                    <td th:text="${category.describe}"></td>
                    <td th:text="${category.create_at}"></td>
                    <td th:text="${category.update_at}"></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>